"""
设置窗口大小
"""
import time
from selenium import webdriver

driver = webdriver.Chrome()
driver.maximize_window()
driver.get("https://baidu.com")
# size=driver.get_window_size() #不传值是默认
driver.set_window_size(width=1000,height=500) #不传值是默认
time.sleep(3)
driver.close()
